Integrand size = 40, antiderivative size = 103 \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=-\frac {(A-B) \cos (e+f x)}{2 f (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \text {arctanh}(\sin (e+f x)) \cos (e+f x)}{2 a f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {3051, 2820, 3855} \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\frac {(A+B) \cos (e+f x) \text {arctanh}(\sin (e+f x))}{2 a f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {(A-B) \cos (e+f x)}{2 f (a \sin (e+f x)+a)^{3/2} \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 2820
Rule 3051
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\frac {(A-B) \cos (e+f x)}{2 f (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \, dx}{2 a} \\ & = -\frac {(A-B) \cos (e+f x)}{2 f (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}}+\frac {((A+B) \cos (e+f x)) \int \sec (e+f x) \, dx}{2 a \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ & = -\frac {(A-B) \cos (e+f x)}{2 f (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \text {arctanh}(\sin (e+f x)) \cos (e+f x)}{2 a f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Time = 2.21 (sec) , antiderivative size = 186, normalized size of antiderivative = 1.81 \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (-A+B-(A+B) \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2+(A+B) \log \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2\right )}{2 f (a (1+\sin (e+f x)))^{3/2} \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(459\) vs. \(2(91)=182\).
Time = 2.68 (sec) , antiderivative size = 460, normalized size of antiderivative = 4.47
method | result | size |
default | \(\frac {A \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+A \sin \left (f x +e \right ) \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-A \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-A \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+B \sin \left (f x +e \right ) \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-B \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+A \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-A \cos \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+A \left (\cos ^{2}\left (f x +e \right )\right )+A \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-B \cos \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-B \left (\cos ^{2}\left (f x +e \right )\right )-B \cos \left (f x +e \right ) \sin \left (f x +e \right )+A \sin \left (f x +e \right )-B \sin \left (f x +e \right )-A +B}{2 a f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}}\) | \(460\) |
parts | \(\frac {A \left (\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \cos \left (f x +e \right )+\cos ^{2}\left (f x +e \right )+\cos \left (f x +e \right ) \sin \left (f x +e \right )+\sin \left (f x +e \right )-1\right )}{2 f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) a \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}}+\frac {B \left (\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \cos \left (f x +e \right )-\left (\cos ^{2}\left (f x +e \right )\right )-\cos \left (f x +e \right ) \sin \left (f x +e \right )-\sin \left (f x +e \right )+1\right )}{2 f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) a \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}}\) | \(491\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 329, normalized size of antiderivative = 3.19 \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\left [\frac {{\left ({\left (A + B\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (A + B\right )} \cos \left (f x + e\right )\right )} \sqrt {a c} \log \left (-\frac {a c \cos \left (f x + e\right )^{3} - 2 \, a c \cos \left (f x + e\right ) - 2 \, \sqrt {a c} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}{\cos \left (f x + e\right )^{3}}\right ) - 2 \, \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (A - B\right )}}{4 \, {\left (a^{2} c f \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a^{2} c f \cos \left (f x + e\right )\right )}}, -\frac {{\left ({\left (A + B\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (A + B\right )} \cos \left (f x + e\right )\right )} \sqrt {-a c} \arctan \left (\frac {\sqrt {-a c} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{a c \cos \left (f x + e\right ) \sin \left (f x + e\right )}\right ) + \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (A - B\right )}}{2 \, {\left (a^{2} c f \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a^{2} c f \cos \left (f x + e\right )\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\int \frac {A + B \sin {\left (e + f x \right )}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\int { \frac {B \sin \left (f x + e\right ) + A}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}} \sqrt {-c \sin \left (f x + e\right ) + c}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 183 vs. \(2 (91) = 182\).
Time = 0.39 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.78 \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\frac {\frac {{\left (A + B\right )} \log \left (-512 \, \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 512\right )}{a^{\frac {3}{2}} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {2 \, {\left (A + B\right )} \log \left ({\left | \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right )}{a^{\frac {3}{2}} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {A \sqrt {a} - B \sqrt {a}}{a^{2} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{4 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}} \, dx=\int \frac {A+B\,\sin \left (e+f\,x\right )}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}\,\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]